import pandas as pd
from matplotlib import pyplot as plt

df = pd.read_csv("D:\数据挖掘\数据预处理-两次实验\数据预处理-实验2\\titanic.csv", usecols=['PassengerId','Survived','Pclass','Name','Sex','Age','SibSp','Parch','Ticket','Fare','Cabin','Embarked'])
df.hist(color='r', alpha=0.5, bins=50)
plt.show()